/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-09-26 14:16:41
 * @LastEditors: zhl
 * @LastEditTime: 2021-09-30 08:55:23
 * @Description: 解析数据包，并做报警联动处理。
 */
#ifndef __PARSE_TASK_H__
#define __PARSE_TASK_H__

#include <string>
#include <stdint.h>
#include <iostream>
#include <memory>


#include "CTask.h"
#include "CMosquittoManager.h"
#include "global_data_struct.h"



class ParseTask : public CTask{
private:
    /* data */
    std::shared_ptr<CMosquittoManager> c_mm;
    TASK_PARAMS *c_task_params;
    uint8_t *c_apdu;
    int  c_apdu_len;

public:
    ParseTask(std::shared_ptr<CMosquittoManager> mm, TASK_PARAMS *task_params, char *apdu, int apdu_len);
    ~ParseTask();

    void run();
};






#endif /* __PARSE_TASK_H__ */